| 1 | --- |
| 2 | // Dynamic param route rendered per request. Under `output: "server"` there |
| 3 | // is no `getStaticPaths` — any /greet/:name is rendered on demand by the |
| 4 | // worker, which is exactly the SSR-first shape this fixture exists to prove. |
| 5 | const { name } = Astro.params; |
| 6 | const requestId = Astro.locals.requestId ?? "missing"; |
| 7 | --- |
| 8 | |
| 9 | <html lang="en"> |
| 10 | <head> |
| 11 | <meta charset="utf-8" /> |
| 12 | <title>Greet {name}</title> |
| 13 | </head> |
| 14 | <body> |
| 15 | <h1 id="greeting">Hello, {name}!</h1> |
| 16 | <p id="mode">on-demand</p> |
| 17 | <p id="request-id">{requestId}</p> |
| 18 | </body> |
| 19 | </html> |